/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package simple.spc;

import java.util.Iterator;
import java.util.logging.Logger;
import org.json.JSONException;
import org.json.JSONObject;

/**
 *
 * @author cxc
 */
public class test {

    public static void main(String[] args) {
        /*
         * JSONObject
         */
//        try {
//            JSONObject a = new JSONObject("{a:'a',b:'b',c:'c'}");
//            for (Iterator iter = a.keys(); iter.hasNext();) {
//                String key = (String) iter.next();
//                System.out.println(a.getString(key));
//            }
//        } catch (JSONException ex) {
//        }
//        String b = "1-12-3-2-3-3-";
//        System.out.println(b.replace("-3", "-三"));
        /*
         * logger
         */
        test logWorld = new test();
        logWorld.sub();

    }
    private static String name = test.class.getName();
    private static Logger log = Logger.getLogger(name);

    public void sub() {
        log.info("Hello Logging World");
        log.severe("服务器错误");
    }
}
